package com.cskaoyan.service.wx;

import com.cskaoyan.bean.Storage;
import com.cskaoyan.mapper.StorageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author pengyehua
 * @date 2020/12/8 15:25
 */

/**
 * 文件上传
 */
@Service
public class WxStorageServiceImpl implements WxStorageService {

    @Autowired
    StorageMapper storageMapper;

    /**
     * 文件上传
     * @param storage
     * @return
     */
    @Override
    public Storage upload(Storage storage) {
         storageMapper.insertAndSelectId(storage);
        return storage;
    }
}
